package com.lg.io;

import lombok.SneakyThrows;

public class Base {
    public static void main(String[] args) {

    }

    @SneakyThrows
    private void  tradition1() {
//
//        ServerSocket serverSocket = new ServerSocket();
//        SocketAddress socketAddress = new SocketAddress();
//        serverSocket.bind();
//        while(!Thread.currentThread.isInturrupted()){//主线程死循环等待新连接到来
//            Socket socket = serverSocket.accept();
//            executor.submit(new ConnectIOnHandler(socket));//为新的连接创建新的线程

    }
}
